import request from '@/utils/request'

export function collect(movieId) {
  return request({
    url: '/i/movieCollection/collect/'+movieId,
    method: 'post'
  })
}

export function cancelCollect(movieId) {
  return request({
    url: '/i/movieCollection/cancelCollect/'+movieId,
    method: 'post'
  })
}

export function page(data) {
  return request({
    url: '/i/movieCollection/page',
    method: 'get',
    params: data
  })
}
